// components/header/header.js
const app = getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    isOpen: false,
    phone: "",
    vfcode: '',
    // 登录页面小列表封装数据
    logResArr: [
      { "title": '绘画素材', "imgUrl": "../../images/stu-1-w94.png", "text": "笔刷/参考/线稿等" },
      { "title": '入门教程', "imgUrl": "../../images/stu-2-w94.png", "text": "ps/sai/procreate等" },
      { "title": '专业试学', "imgUrl": "../../images/stu-3-w94.png", "text": "基础/应用/特训等" },
      { "title": '技能变现', "imgUrl": "../../images/stu-4-w94.png", "text": "求职/就业/商单等" },
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    changeIsOpen() {
      this.setData({
        isOpen: true
      })
    },
    formSubmit(e) {
      console.log('form发生了submit事件，携带数据为：', e.detail.value)
    },
    changetcc(){
      this.setData({
        isOpen:!this.data.isOpen
      })
    }
  },
})
